import {request} from "../request";

export function getCtById(id){
    return request({
        url:`/sys/ct/${id}`,
        method:'get'
    })
}


export function getCtPage(data){
    return request({
        url:'/sys/ct/page',
        method:'put',
        data:data
    })
}

export function putCt(data){
    return request({
        url:'/sys/ct',
        method:'put',
        data:data
    })
}
export function postCt(data){
    return request({
        url:'/sys/ct',
        method:'post',
        data:data
    })
}

export function deleteCt(data){
    return request({
        url:`/sys/ct`,
        method:'delete',
        data:data
    })
}
export function exportCt(data){
    return request({
        url:`/sys/ct/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
